package com.shengyuan.manage_os.utils;

import android.content.Context;
import android.view.WindowManager;

import static android.content.Context.WINDOW_SERVICE;

/**
 * Created by Administrator on 2016/11/18.
 */

public class EquipParam {
    private static WindowManager WM;
    private static int windowWidth;
    private static int windowHeigth;

    public static void init(Context context) {
        WM = (WindowManager) context.getSystemService(WINDOW_SERVICE);
        windowWidth = WM.getDefaultDisplay().getWidth();
        windowHeigth = WM.getDefaultDisplay().getHeight();
    }

    public static int getWindowWidth(){
        return windowWidth;
    }
    public static int getWindowHeigth(){
        return windowHeigth;
    }
}
